package com.motong.gongdan.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import com.motong.gongdan.vo.system.otherVo.CustomFieldVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author:fff
 * @time:2022/4/14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("stock_detail")
public class StockDetail extends PublicPo{

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("库存明细id")
    private Integer id;

    @TableField("product_id")
    @ApiModelProperty("商品id")
    private Integer productId;

    @TableField("handle_num")
    @ApiModelProperty("操作数量")
    private BigDecimal handleNum;

    @TableField("create_id")
    @ApiModelProperty("创建人id")
    private Integer createId;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @TableField("sm_id")
    @ApiModelProperty("库存信息id")
    private Integer smId;

    @TableField(updateStrategy = FieldStrategy.IGNORED, value = "other")
    @ApiModelProperty("自定义信息")
    private String other;

    @TableField(exist = false)
    private List<CustomFieldVo> customFieldVos;

    @TableField(exist = false)
    private JSONArray customFieldMess;
}
